package com.company.project.service;
import com.company.project.core.Result;
import com.company.project.model.OrderComment;
import com.company.project.model.OrderMain;
import com.company.project.core.Service;
import com.company.project.model.request.QueryParams;

import java.util.List;


/**
 * Created by CodeGenerator on 2020/04/21.
 */
public interface OrderMainService extends Service<OrderMain> {

    Result generateOrder(OrderMain orderMain);

    Result getOrderByUserId(Integer userId);

    Result checkPay(OrderMain orderMain);

    Result receive(Integer orderId);

    Result comment(OrderComment comment);

    void finish(Integer valueOf);

    Result num(Integer id);

    Result list(QueryParams queryParams);

    Result detail(Integer orderId);

    List<OrderMain> getList(Integer shopId);
}
